fix incorrect pass-through of .ref in py.call