Python beautify_file should throw on error

When you get an error, you should throw an exception, not return
an invalid value.
Python main should report any errors and return failure

Main is unlike other api calls in that it is the shell entry point.
It should report exceptions via stderr and return success or failure.
Python test shell script output for missing input file
Test CLI missing file output for html and css