Core python code for reddit bots - made using praw API