MySql 'datetime' to Python timestamp

what is the proper way to convert between mysql datetime and python timestamp?
according to http://dev.mysql.com/doc/refman/5.0/en/datetime.html. i got to find a way to convert the string value ‘YYYY-MM-DD HH:MM:SS’ to a timestamp int. i looked up in python’s doc. i tried: