barely more pythonic