Some further duplication removing refactoring in main.py
Some further duplication removing refactoring in main.py

allanderek/drunken-octo-avenger,karlorg/drunken-octo-avenger,allanderek/drunken-octo-avenger,karlorg/drunken-octo-avenger,karlorg/drunken-octo-avenger,allanderek/drunken-octo-avenger,karlorg/drunken-octo-avenger,allanderek/drunken-octo-avenger