fixed python3 headers management