If you use the source directly from GitHub, you can use the request package to download the raw * .py file using http get, and then execute the file.
import requests exec(requests.get('http://github.myorg.net/raw/repo/directory/file.py').text)
Disclaimer: I am an R user learning Python, so this may violate some Python best practices.
source share