pyrallelsa is the Magellan library that has the Problem definition interface in Python which you can use to define your problem for use with Magellan.