Patch A Class Python Definition Function