Fixed syntax issues with djpi.py