refactor sp.py

simplified add_entry()