Tidying and Made the bot put posts in contest mode

To make it easier for people to get a response, I think it would be better to put the threads in contest mode so you can't sort by hot, and you will always see a random comment when opening the page.

As for the tidying: I just wanted the code to follow PEP :P