Server response in Python