The best way is to set FlagStatus=1 (tick mark against the email) and save it. Use the below code to flag the email Mark complete.
message.FlagStatus = 1 message.save()