Python implementation of mod_auth_tkt cookies