Added cmd.py code, updated builduitl and routes for new packaged structure