Made it more pythonic, aka completely unreadable.