compatibility with python3
fix for clang compilation