Python2+3: Add some actions before patching.
Merge commit '831635d413436b46b7f274fa9379c9e5dda13395' into develop
Merge pull request #349 from Alexpux/develop

Fix python building.