This sounds like more of an Ubuntu question than a DrJava question. I would suggest...
The PyParsing homepage touts Getting Started with Pyparsing as a great reference...