How to create object in Python