Imagine I had the file "module.py" on a webserver. I get the files contents by doing the following
import urllib.request
response = urllib.request.urlopen('http://example.com/module.py')
content = response.read()
The file "module.py" contains the function
def test():
print("test")
What would be the best way to import the content so I could use the test function? I have seen a few solutions but they no longer seem to work.