Trouble implementing python on WordPress

Ok, I found the solution. First of all, you have to

$handle = popen(‘env python ‘. DIR . “https://wordpress.stackexchange.com/” . $data[‘file’], ‘r’);

More importantly, I had to install Python 2.7.2 on Bluehost

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)