gras: extend factory to python (partially)