export PYTHONPATH in hadoop-env.sh
removed inline file writing