added raise NotImplementedError to AnonymousFunction to_xml