Python fixes

Change-Id: I3c7dbad535f07a36360ea4939cc2b484c002fd2e
diff --git a/test/test-python-proto-consistency.sh b/test/test-python-proto-consistency.sh
index 27e6f15..a10d821 100755
--- a/test/test-python-proto-consistency.sh
+++ b/test/test-python-proto-consistency.sh
@@ -33,7 +33,11 @@
 fi
 
 # delete and regenerate python protos
-rm -rf python/dmi/*
+rm -rf python/*.desc
+rm -rf python/dmi/*.egg-info
+rm -rf python/dmi/*_pb2.py
+rm -rf python/dmi/*_pb2_grpc.py
+rm -rf python/dmi/*.desc
 make python-protos
 
 # Running git status ensures correct git diff-index picks up changes