switched to python implementation since there is an error in c implementation. Removed normalization in python implementation