for python mode url