def get_ec2_driver(aws):
 ec2 = get_driver(Provider.EC2)(aws['access_key'], aws['secret_access_token'], region=aws['region'])
 return ec2

def get_ec2_driver ( aws ) : ec2 = get_driver ( Provider . EC2 ) ( aws [ 'access_key' ] , aws [ 'secret_access_token' ] , region = aws [ 'region' ] ) return ec2
get a libcloud ec2 driver given some credentials and other configuration .