Create Morton Space key of a QuadTree in python