[bin][createdocker] follow PEP8 style guide and improve the script

[docker] set git user e.g. for applying patches
4 jobs for !2231 with feature/python-createdockerimage-script
latest merge request