Fix python warnings exposed in dev4 slot
Cherry picked from !2839 (merged)
This will be needed when we move to the next LCG, but can be applied already now
Edited by Marco Cattaneo
Cherry picked from !2839 (merged)
This will be needed when we move to the next LCG, but can be applied already now