replaced export bash scripts with faster python scripts