Get Token Using Python

Hi guys, I am trying to get the token using Python, and tried the code that is shared in the forum, but always gets an error like:

{“code”:“BadRequestError”,“message”:“MultipartParser.end(): stream ended unexpectedly: state = PART_DATA”}

The code that I use:
import requests

url = ‘https://developers.onemap.sg/privateapi/auth/post/getToken

payload = ‘------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data;name=myemail@domain.com\r\n\r\ndemo@onemap.sg\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=mypassword\r\n\r\ndemo123!\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW–’
payload = payload.encode(‘UTF-8’)
headers = {‘content-type’: ‘multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW’,‘cache-control’: ‘no-cache’}
response = requests.request(‘POST’, url, data=payload, headers=headers)

print(response.text)

Please ensure that the authentication information is correct.