incomplete expression when last line is commented out

issue addressed in #151 

Ready to merge

* [x] Unittest
* [x] Fix
Then plz mod the comment above to print()!