Changed access/secret key env variables
Fixed list flattener, removed print statement