pylib unit testing