PythonPart performance profiling

If the created PythonPart has poor performance, it’s useful to perform performance profiling of the Python source code. Performance profiling is supported by the PythonParts framework for functions and lines.