'Find the location that is the parent of this location in this
course.  Needed for path_to_location().'

def get_parent_location(self, location, **kwargs):

    block = self.get_item(location, 0)
    return block.parent
