check syntax before evaluating.
L is deprecated in python 3.
fancy output.