added convenient.py to reorganize some things