replace perl reset script with python one

doesn't seem to be anything new to add to my branch (which is only a single commit!) so might as well make it a pull request