"default=None" is a formal parameter with a default value, it should have no spaces around the equals sign.  Same for the handful of other changes in this file.