Rest Api Via Curl In Python