Cleaned up cmdHandler.py

Aligned with pythonic conventions (spaces, naming, etc..)