A recapitulation of hingefind.tcl (http://biomachina.org/disseminate/hingefind/hingefind.html) in python