Change recursion to while loop
Remove branch cases.
Change escaped strings to RAW strings
Rename endl to endc
Add head.py