Python coded octree model of occupancy grid