load python mode only if it is provided