Fix omni.metadata under Python 2