Improve theme.py for relative import.