Reduce duplication function calls.
Add pyuniotest class for unittest, but still lake mock server for test.