figure changes and python changes