Homogenization of almost periodic operators