py: Restore CPython compatibility in compiler for closures with def args.