Use psycopg2.extras.NamedTupleCursor
sort imports
Embed images from wikimedia commons
Send a User-Agent header