some refactor and formatting
noted MawKKe in CONTRIBUTORS.rst
cleanup: files.py contained unnecessary indentation