adding login / getparams decorators, removed the ugly python3 type based coding