minor fixes

- indentation fix
- removed some unused variables
- pep8 cleanup