Fixed get_menus not being found in Python 2.x