bug fix regarding menu display in python3