Changed absolute imports to relative imports in text.py.