Mysql How to insert a variable as field value in a table
You should insert hash as a parameter following this example:
http://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-execute.html

Something like this

insert_stmt=(
       "insert into meanu (username,pwdhash1)"
       " values('BV2',%s)"
        )
data=(hash)
cursor.execute(insert_stmt, data)