Update fragments.py

I wrote some things you might want to check