Python Main Function And Its Inverse