Got rid of OOP as it was messing up exec function.
Rearranged imports and added from itertools import groupby.
Added -C option to run statement after expression.