Preparations for R calls from python