Adding ECC code and python gateway script