Specify on which distribution it works
Variables don't work in the name
Can't set a privilege without a database
Use template0 otherwise it doesn't work
Install psycopg2 with apt