We provide a set of diagonals of simple rational functions of four variables that are seen to be squares of Heun functions. Each time, these Heun functions, obtained by creative telescoping, turn out to be pullbacked 2 F 1 hypergeometric functions and in fact classical modular forms. We even obtained Heun functions that are automorphic forms associated with Shimura curves as solutions of telescopers of rational functions.