Should probably try/except this, so an actual failed login on not PTP doesn't throw an exception (it probably won't be valid json).