Update edit.py

Made it a bit easier to use.