We have shown recently that the space of modular forms, the space of generalized Dedekind sums, and the space of period polynomials are all isomorphic. In this paper, we will prove, under these isomorphisms, that the Eisenstein series correspond to the Apostol generalized Dedekind sums, and that the period polynomials are expressed in terms of Bernoulli numbers. This gives us a new more natural proof of the reciprocity law for the Apostol generalized Dedekind sums. Our proof yields as a by-product new polylogarithm identities.