Fix - minor errors found by PyDev

Fix for minor syntax errors found by PyDev / PyLint.