During his long papacy , the pontiff took trips to Pakistan , Bangladesh , Kazakhstan and , twice , to India .