shader: fix for python3