Fixed error when receiving the API as an argument

When being passed the API key as an argument at the command line, the script errors out:
NameError: global name 'args' is not defined

Simple fix to get it working again.