HTTP round-trip time latency written in Python