Enabled backwards compatibility for old Python versions