new hash function
function to creaet rater out of patch
python functions to efficiently output files