in houdini you can load external python files from the config folder of houdini in the user profile folder:
userProfile/houdini15.0/python2.7libs/
1. create the folder in the user profile python2.7libs:
userProfile/houdini15.0/python2.7libs/
2. insert your python code
3. start houdini load python file
INFORMATION
Notice all files and folders under the houdni Folder:
windows: C:\Program Files\Side Effects Software\Houdini 15.0.270\houdini
Can be copyed to the user profile folder for customization.