[python] Avoid VirtualFunction in python interface
- Remove include of 
python/function.hhfrom python-related headers. This uses the deprecatedVirtualFunctioninterface and thus clutters the compile output with many warnings. To keep the dunepythontest.cc working, the include is now added there directly. - Implement conversion to 
std::functionandBoundarySegment - Switch 
dunepythontest.ccfromVirtualFunctiontostd::function. This 'test' mostly demonstrates the use of the interface. This is now done in terms ofstd::functioninstead of the deprecatedPythonFunctionwhich implements the deprecatedVirtualFunctioninterface.