letting it work on python3