Removed sys import (move to text.py)