Anyons and deformed Lie algebras