fixed syntax error in Custom MyCode module

Fixes #638.