Fix pylint warning

Fix pylint warning: `'ser' attribute defined outside __init__`.

Fixes #18.