Fix pylint warning

Move desired_interval from constructors
Move statistics stuff out of ratio module

And make statistics module independent of ratio class