Right now, the python module does not allow exporting to anything but kra because the output mimetype isn't set.
This patch adds a few lines to the export function in libkis, so that it will get the mimetype from the filepath and use that for the output mimetype.