Refactoring and downtimes API

disable warning it `pylintrc` to cleanup code