Fix steadystate

Fix problems with recent changes to steadystate with older scipy versions. Fix code style issues.