Fix import when using self-install
Remove .py extension from configure script.