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