Update tests.py

Added support to generate Junit like xml reports
Merge pull request #1 from leogmarzo/master

Added JUnit like reporting