Merge pull request #609 from ericvergnaud/Preliminary-enhancements-for-Python-target

Preliminary changes for Python