pep fixes for debug lines and has_key use