A Python script to "normalize" a pose: