dump-pickled: use __name__ block

Signed-off-by: Christopher Larson <kergoth@gmail.com>