move check_lossfunc_time.py
introduce from __future__
relative imports for tests