Making things more pythonic.