added weakrefs and weakmethod.py