Port of SiriProxy from Ruby to Python.