Update gettoken.py

Cleaned up the ending a little.
I suggest reading PEP8 before creating new projects.
Link: http://www.python.org/dev/peps/pep-0008/

You may want to make getAccountsList return a dictionary so that accounts can be referenced by name instead of an integer from 0.