Python Invoke Rest Api For Testing