Added basic functions back for tneanet.py