Running os.path.expandvars
fails for some env variables. Seems too basic to be real.
$ echo $HOSTTYPE
x86_64
$ echo $HOME
/labhome/eladw
$ python -c 'import os; print os.path.expandvars("$HOSTTYPE")'
$HOSTTYPE
$ python -c 'import os; print os.path.expandvars("$HOME")'
/labhome/eladw
Any idea what I'm missing (I am running python 2.7)?