Fix library import issues when using resttest.py as installed shell utility