Fix formatter python compatibility (#3640)

2 files changed