Deleted __slots__ in class lm, and added ValueError exception handling, as suggested by Zbyszek Szmek from MDP team.
Deleted __slots__ in class lm, and added ValueError exception handling, as suggested by Zbyszek Szmek from MDP team.

andreamaf/glgm