Initial commit of python version and sample code