Python 3 updates broke binary file handling

The switch to unicode strings broke the parse_meta function when it handles binary files.  parse_meta probably shouldn't be handling binary files anyway.

I added the python-magic library to determine file type by magic number.  I figured it was either this, or determining which files to run parse_meta on based on file extension.  Other suggestions?

Thanks!