housekeeping, move constants into apiconsts rename test_main to test_pro, pep8, isort
pep8