fix properties script for python3 syntax