Mostly this
* debian/rules:
- auto_clean: delete test/__pycache__. (Closes: #1043789)
I added to debian/rules
execute_after_dh_clean:
rm -rf test/__pycache__/
If I may suggest a more declarative approach: add a debian/clean file with "test/__pycache__/" in it (mind the final slash).
Roland.