minor coding style fixes to ghost.py