I found a solution around this. It struggled getting the api_key and api_secret as a enivronmental variable. All you have to do is to put it as variables in your class attributes.