Add content type to TemporaryFileWrapper
Remove dependency on python-magic.