Update main.py

Re-factored code to enable Python 3 support.

Added 'displayAccountsBefore' property to enable showing of account / email address for before, after, or both when account is running.