middleware that expects the --python flag on jlc