I don't think a political discussion now and then at work is an issue per se. As long as you remember you're talking with colleagues, and you have to keep a respectful tone and be friendly and collaborative with them all the same one minute after the conversation is over. And insulting your colleagues (for example suggesting that they're racist, or homophobic, or otherwise a problem at work or in the society) is of course unacceptable.