Made compatiable with Python 2
Swtiched file naming from url to time/hash to shorten filenames.

Was getting OSErrors because filenames were too long. Now uses 'data/{}_{}'.format(int(time()), md5(url)).