`if mediatype == u'video':` is idiomatic Python.