@Brando you can execute a string with exec. In python2: exec string_here, In python3: exec(string_here).
To download the code, use the requests or urllib module. Example (python2): import urllib\nexec urllib.urlopen(some_url_here).read() or import requests\nexec requests.get(some_url_here).text