Modular properties of algebraic structures from 2 dimensional conformal field theories