Not sure what the problem might be. I remember using this back in Maya 3. Maybe someone more familiar with expressions might know. I don't use them all that often. Oh, that might be it... are you doing this as an expression or as a script? Right click on the rotate channel you want to be affected and choose expressions from the list. Then type that into the text box there and see if that works.