Fixed a bug with the Python version of the patcher