Make compatible with older Pythons