Move min_interval and max_interval from buffer_procure to buffer class
more pep8 changes