Take a look at https://pypi.python.org/pypi/isbntools, it will allow you to 'hyphenate' ISBNs and much more, like extracting, cleanning, transforming, and get metadata.
This is a library (that you can use in your program) but it installs several 'scripts' that you can use from the command line.