BUG: make ID generation HTML4 compatible

HTML 4 requires that HTML element id attributes start with a letter A-Z or a-z.  This bug fix assures that ids generated in both Python and javascript will be valid.