Guide to Python's magic methods