No, that wasn't done by hand. I was using a patched version of autopep8 we use at work that converts lists to tuples if they appear to be immutable. There are various reasons for this. I reverted that change.