Fixing several mistakes in control implementations and beginning to add support for them into the Python interface.