python script for normlization