Added some error handling in case the server returns invalid JSON or the desired property isn't present in the returned JSON.
Added logging using the built-in logging module.
Added a missing dependency on xml.etree.cElementTree
Removed pyc file
Added (limited) ability to trap KeyboardInterrupts and end the application. It's still slow to quit sometimes in spite of this; not sure why.