See donut/how caleb did it. Pymysql isn't actually used at all here, but removing it caused some errors for me.