BF: Tweak python action tests and fix Deprecation Warning