python main() snippet