cat > foo.py <<EOF import foo EOF
cat > foo.py <<EOF import bar EOF cat > bar.py <<EOF # some actions EOF
Used when a module is importing itself.