Avoid dramatic changes in the resulting .c file when the input .pyx file changes only slightly.

This makes [cython-ifdef](https://github.com/denik/cython-ifdef) produce better output and also produces code that is more readable.

It replaces sequential counter in Code.py with a simple function that converts any string to identifier by stripping bad characters.