correct the percentage computation of completeness of file
general clean up

converted triple single quotes to triple double quotes
removed some code that was not being used and was unreachable
formatted to conform more closely to PEP 8