remove spaces/tabs, use setattr + getattr in tests
removed unused imports