Python Main Class