Tiny fix - make code more pythonic :)