http://stackoverflow.com/questions/802134/changing-user-agent-on-urllib2-urlopen

This might help