updated record_ir.sh to use python