fix flake8 warnings
add prepare_desktop_manager_conf