common python code for gentnerlab