try:
# get a method and choose it's name runtime
yourMethod = getattr(ccxt, 'binance')
# call it
yourMethod({
'apiKey': 'YOUR_API_KEY',
'secret': 'YOUR_SECRET',
'enableRateLimit': True,
})
catch AttributeError:
print "method with that name doesn't exist"