Error !

SyntaxError: invalid syntax (<string>, line 1)

%> <div class="container articlepage"> <% images = [] if object.val('multipleimages'): images = eval(object.val('multipleimages')) def getImage(id):
memory:0x7f97bcef7390, line 10:
<%
memory:0x7f97bcef7390, line 10:
<%
templates/ferd/site, line 160:
${self.main_content()}
/var/limecms/ferd/ferd01/local/lib/python2.7/site-packages/Mako-0.8.0-py2.7.egg/mako/runtime.py, line 841:
callable_(context, *args, **kwargs)
/var/limecms/ferd/ferd01/local/lib/python2.7/site-packages/Mako-0.8.0-py2.7.egg/mako/runtime.py, line 815:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/var/limecms/ferd/ferd01/local/lib/python2.7/site-packages/Mako-0.8.0-py2.7.egg/mako/runtime.py, line 783:
**_kwargs_for_callable(callable_, data))
/var/limecms/ferd/ferd01/local/lib/python2.7/site-packages/Mako-0.8.0-py2.7.egg/mako/template.py, line 443:
return runtime._render(self, self.callable_, args, data)
/var/limecms/ferd/ferd01/ferd-inst/Products/LimeTemplate/LimeTemplate.py, line 679:
html = mytemplate.render(object=object, site=site, **extra)