Updated for compatibility with Python 3.x

All I did was replace all <code>print</code> command calls with <code>print()</code> function calls.