human
pymysql converts mysqldatetime to datetime.
assistant
Here is a Python function to pymysql that converts mysqldatetime to datetime

import datetime

def mysql_to_datetime(mysql_date):
    """
    Convert mysql datetime to datetime.
    """
    return datetime.datetime.strptime(mysql_date, '%Y-%m-%d %H:%M:%S')

# Enter the mysql date
mysql_date = '2018-01-01 12:00:00'

# Calling the function
print((mysql_to_datetime(mysql_date)))

#Example Output
# 2018-01-01 12:00:00

#Remember to inspect code for bugs.