changed to mimeparse that works in python3