Move tracpy import to beginning of file