python TCP server working but messy, will probably use a newer version found on web soon