Rewrote using tornado and http since that would be better than tcp