Python Patch A Method Of Recognizing