Optimize and synchronize Python- and C#-runtime