Rename sample_rate -> samplerate

The name `sample_rate` is not Pythonic because according to PEP8, an underscore should only be used if it improves readability.
`samplerate` is IMHO easier to read and looks nicer.

There are two other commits, but they are too innocuous to deserve separate pull requests.