Fix Perl::Critic errors, and correctly pass parameters to Python classes.