Run python with unbuffered streams.
Restart sbt if environment changes.