prettPrintList edit

Removed unnecessary  if statement.
Used better notations for last element in a list
Only evaluated len(inlist) once.
Merge pull request #1 from mnmt/master

ninja mnmt code changes