Fixed it

now uses urllib properly and urllib2 if you are using such a system
although urllib 2 does not exist in python 3.x as it was merged with
urllib