Fixing PMD and python syntax