raco.algebra: fix some pylint and compile bugs

Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>