Update connection.py

params must be passed as an array
Merge pull request #6 from prometheanbob/master

Update connection.py