separating freebase key from python script, made front end work again with pagination