Recipient of email to be variable gmail api

def sendemail():

service = Create_Service(CLIENT_SECRET_FILE, API_NAME, API_VERSION, SCOPES)

emailMsg = 'It worked!'
mimeMessage = MIMEMultipart()
mimeMessage['to'] = str(entry1)
mimeMessage['subject'] = 'It Worked'
mimeMessage.attach(MIMEText(emailMsg, 'plain'))
raw_string = base64.urlsafe_b64encode(mimeMessage.as_bytes()).decode()

message = service.users().messages().send(userId='me', body={'raw': raw_string}).execute()
print(message)

i want to set the recipient of the email as a variable

but, i get this error: ImportError: cannot import name 'sendemail' from partially initialized module 'Send' (most likely due to a circular import