First version of experimental python version, not tested