Cleaning of _shell_code.py and windows support