WIP StructuredEdgeDetection to python

Preparations needed for exposing `StructuredEdgeDetection` to python.
Corresponding PR to `opencv` will follow after this PR is merged (remove from blacklist and some fixes)