import requests
import logging

def downloadRedditUrl(url):
	print "downloadRedditUrl(): Downloading url: {}".format(url)
	#assert url.startswith('https://www.reddit.com/r/learnprogramming/')
	
  
	headers = {
    		'User-Agent': 'Searching Reddit bot version 1.0',
	}
	r = requests.get(url,headers = headers)
	if r.status_code != 200:
		raise Exception("Non-OK status code: {}".format(r.status_code))
	return r.text	

#Find the TV Line in post
def parseRedditPost(html):	
	bs = BeautifulSoup(html)
	return bs.select('div.usertext-body')[1].text

Create util.py