A collection of Python modules written in Python (not built-in) that emulates custom built-in modules is available.
MDM.py
MDM2.py
SER.py
SER2.py
GPIO.py
GPS.py
USB0.py
Copy these files on PC.
These modules make the difference between running the script on PC and on module.