Experimental python implementation