Revert "Turned off interactive mode for pyplot"

Also makes sure we use the "Agg" backend which fixes the initial problem.