generate_stub.pl