improved calling the census api class call by adding it globally in flask