Code made compliant with pep* failing at nosetests with error --with-yanc