moved ec.py from scripts into sandbox (per #134)