python constructor example