Testing code for embedded mysql and json web service in python