move slap.py into fun.py, add fun.py, and .sm