Normalize Array Python Definition Function