Add a python implementation of emacsclient.
Condense emacsclient.py a bit.