More pythonic python