Python Main Function Definition