Fixes some warnings reported by pylint:
- unused variable
- unused import
- unused parameter
- old style class
- a few instances of unknown variable!
- call base class __init__
- invalid variable name
- dangerous parameter default value {}
Check for page size alignment and throw an error early rather than wait for REST service to fail