Adding control routines to Python interface.