Refactored the file to better follow PEP.
Made the bot put posts in contest mode.
Merge pull request #2 from SliZeing/master

Tidying and Made the bot put posts in contest mode