[travis] remove unneeded Makefile.config sed hacking

Make allows variable redefinition, so sed brittleness can be avoided.
[travis] run pytest
initialize solver iter to zero (previously uninitialized)
[pycaffe] basic, partial testing of Net and SGDSolver