AMBARI-1213. Cleanup python test cases and introduce third party library for mock testing python code. (mahadev)