Made export execution shell=True . This may be a security risk but I can not be sure.