Update connection.py

modify createSecurityGroup function's argrment for testing  more flexible