I don't understand why people are characterizing his firing as political. If you read his memo, it should be clear that he was fired for being sexist. His memo included a section which stated that women are biologically inferior to men. This immediately makes it very difficult to work with him for women and their allies. I know tech skews male, but software engineers have to interface with many other teams and many other functions, especially at Google. If he actually left out the biological differences claim, Google might not have fired him, but that section left Google no choice. I support discourse in general, but from a business/society perspective, you can't immediately make it difficult for a large plurality of your peers (and vast majority if you include allies) to work with you.
This is only political because right-wing political organizations have chosen to defend someone's sexist memo AFTER THE FACT, to drive the narrative of how Google is anti-right and is a left-wing puppet company. Calling this a political firing is only coopting their ridiculous narrative that he was fired for expressing "conservative values" or their sexist narrative that those conservative values include the fact that women are biologically inferior.