make python 3.7 compatible

1 job for main in 1 minute and 37 seconds (queued for 7 seconds)