working on v2 with requests instead of urllib2 and making functions so that everything isnt written three times