remove python-2.5-ism when guessing mimetype (bug #218)

This syntax doesn't work on python 2.4, which we still support.
Merge pull request #251 from mdomsch/bug/218

remove python-2.5-ism when guessing mimetype (bug #218)