more pythonic auth