uint fix(mac) and remove duplicate debugmode check(cuda_convnet)

Also some pep8