added data_pop_sex view function
improved calling the census api class call by adding it globally in flask