a guid to python's magic method