modeller.parallel.communicator.RemoteError: AttributeError: 'module' object has no attribute 'mymodel' from <Slave on localhost>
The parallel module uses Python's pickle module to send classes to
slaves, so is subject to the same restrictions as regular pickle: see
http://docs.python.org/lib/node317.html
In particular, this means that you can't define a subclass in your main
script (because the slaves can't import it) - move your 'mymodel' class
to a separate file, e.g. mymodel.py, and then import it into your main
script ('from mymodel import mymodel').