Fixed bug with dots in file names
Added support for magic
support for python-magic
magic support