Python Matplotlib Object-Oriented Method