import sys for ST2 compatibility