Make it easier to use preload.py as a module instead of the main python script