syntax fix for python3