Likely the genes don't make you a liberal or conservative directly. Rather they do it in an indirect way. For instance if someone has a genetic disease that requires costly medical care then they will likely vote for socialized medical care. And of course having a dark skin color will also cause politcal leaning in an indirect way.