Normalize 1d Array Python Memory