move a function to pyquickhelper