Added some idiomatic python at the bottom of main.py