stupid first cut, Python socket api sucks