Enable code-patching for various simple Python functions