Renamed raw_input() to input() and used function syntax for print() instead of 'print something' syntax
Removed redundant x^1 and slightly changed output
Merge pull request #1 from gussefant/master

Fixed syntax for Python 3.