hi
I will change the comment.
Regarding 'None'(NoneType) and ""(str) , I don't see any significant difference here but it can be changed.
I considered "f.write" and is simpler as you said but lower in "context.py" is used subprocess to write SSTATE_DIR
and I thought of using the same to keep consistency.
I will wait a bit to see if someone else will comment something and I will submit v2.
Br
Christos