py: restructuring the string representation
adding solution, so far without box checking
consting, rearranging
generate boxes
box checking added