moved global 'starttime' var (python 2.7)