Fixing Python 3.4 compatibility of executor script