Moved 'import praw' back to the top of the file.