tests passing, compatibility with pyhton 3