#! /bin/sh
for python in python2 python2.6 python2.7 python; do
  if "$python" -V >/dev/null 2>&1; then
    break
  fi
done
echo "$python"
