import urllib.request, urllib.error, urllib.parse

def download(url):
    filename = url.split('/')[-1]
print('Downloading', filename)
f = urllib.request.urlopen(url)
data = f.read()
f.close()
with open(filename, 'w') as myfile:
    myfile.write(data)
download('https://raw.githubusercontent.com/biryani/Quacpy/master/auxfun.py')
from auxfun import qregnorm
q = qregnorm([0, 1, 2])
print('Success! q =', q)
Importing python libraries from Github