Fix typo
Simplify test_ident using str.isidentifier()

I have checked that this gives the same results as the previous method.
Remove leftover debugging
Merge pull request #19 from takluyver/latex-complete-fixes

Latex completion fixes