make it compile with older python versions