APIC mech driver unit tests
fix pep8 warnings