fix name normalization
add tests for name normalization
flake8
Merge pull request #343 from sbaechler/normalize

fix name normalization