addition of normalize_table.py

this contains the commits in #1764