testsuite: fixed test for encrypted Properties w/o crypto libraries installed
fixed syntax errors for py < 2.5