Print is a function in python 3 so change
print buildConnectionString(myParams)
To:
print(buildConnectionString(myParams))
solved Syntax error on print-statement in Python 3 [duplicate]
Print is a function in python 3 so change
print buildConnectionString(myParams)
To:
print(buildConnectionString(myParams))
solved Syntax error on print-statement in Python 3 [duplicate]