def gamePlatform(self): # Should return the platform the world is from ("Java", "PE" or "Schematic")
        """Returns the platform the world is from ("Java", "PE", "Schematic"...)"""
        # I would use isinstance() here, but importing the separate level classes would cause a circular import, so this will have to do
        if not hasattr(self, '_gamePlatform'):
            type_map = {
                'pymclevel.schematic.MCSchematic': 'Schematic',
                'pymclevel.leveldbpocket.PocketLeveldbWorld': 'PE',
                'pymclevel.infiniteworld.MCInfdevOldLevel': 'Java',
            }
            t = str(type(self))
            self._gamePlatform = type_map.get(t[8:len(t) - 2], 'Unknown')
        return self._gamePlatform
Returns the platform the world is from ("Java", "PE", "Schematic"...)
pymclevel/level.py