added unit tests for python library