New file se3.py moved from sot-core.