Fix pep8 and flake8 warnings and clean up code in dockutils/create_vol.p...


- Fixed pep8 warnings
- Fixed flake8 warnings
- Minor refactoring