title: Center-aligning text on console in Python
body: <p>I am creating a simple console-based Python (version 2.4) script that will be run on a Bash shell. It is a simple menu-based script that displays a set of options to the user and will do specific tasks depending on the user input.</p>
  
  <p>When the script starts, I want it to clear the screen and display the menu in the center of the screen. I can get the console width from <code>stty size</code>. How do I go about center-aligning the text?</p>