improve formatting and fix pep8 for generate/verify cast5 scripts