Import unit tests from QA
Add python 3 support