Fixes content conversion after python3