same thing, but for python3