Fixed a compatibility bug of format() in python.
Now "active" is considered as a running state.