fix pysandesh test failure

1) make pysandesh tests run in venv 
2) fix xml string encode/decode test