bash: syntax error near unexpected token `(' - Python
Are you typing this at the unix command prompt? You should be doing this inside the python environment, ie. type python
at the prompt and work from there.
Also, no ;
needed at the end of the line in Python
add #!/usr/bin/env python
at the top of your script, or call your script using python myscript.py