Pythonic way