added method inspection to sponge.py