CLOUDIFY-2655 flake8 fixes