Update weakmethod.py