more cleanup due to pylint. also removed relative imports.