title: Creating command line alias with python
body: <p>I want to create command line aliases in one of my python scripts. I've tried os.system(), subprocess.call() (with and without shell=True), and subprocess.Popen()  but I had no luck with any of these methods. To give you an idea of what I want to do:</p>
  
  <p>On the command line I can create this alias:
  alias hello="echo 'hello world'"</p>
  
  <p>I want to be able to run a python script that creates this alias for me instead. Any tips?</p>
  
  <p>I'd also be interested in then being able to use this alias within the python script, like using subprocess.call(alias), but that is not as important to me as creating the alias is.</p>