[Python-Dev] Patch: AttributeError and NameError: second attempt.