Update clamping.py

cleanup, fixes