new python function to laucnh parallel processing on postgres server
2 helper functions to plot histogramm using python