Bugs fixed to make the script work with a couple of BBVA API calls and one CartoDB API call