All cleaned up and almost working. ...3 Days for a Python script... Just a print statement for the uncodes missing