Cleaned main.py and added urllib and json imports