BUG Fix typo in fallback path
MIN Remove unused imports & variables

Code simplifications identified by pyflakes