added usage info to record script
calc: ensured Python 3 compatiblity