Speedtest tool in Python