Add Carl's python embedding code