Changed homo.py to work with new format.

Also put in space stripping for client in case of polygram