python scripts for DIRT