Remove some code duplication

Validation of a PDB line was present twice. It is now factorized in the
valid_pdb_line function.

Notice that a empty line is considered valid in a PDB file, perhaps it
shouldn't.
Change slighlty an error message
Stop when the file is detected to be empty at format guess
Make Flake8 happy