Typo.
Declare the supported Python versions.
Code rearrangement to avoid database errors (OperationalError) on reconnections.