import urllib.request, urllib.parse, urllib.error
MGIName = '1913775'
print(urllib.request.urlopen('http://www.uniprot.org/uniprot/?query=' + MGIName +
    '&sort=score').read())
Using Python to ask a web page to run a search