Python Authline stuff with a dash of php.