python code for connecting to Mariadb