cleanup: code cleanup in nemoa/common/file.py