Moved demographics and time to attention quantiles to function in library
so we can call this functions from python.