Use 'mime' module for content-type detection
Remove unused import