phpDir renamed to phpPath
print function for compatibility with python3