Dime como puedo transformar el siguiente codigo Javascript a Python

// Text after two forward slashes is a comment
if (x == 2) {
  console.log("x must be 2")
} else {
  if (x == 3) {
    console.log("x must be 3")
  } else {
    console.log("x must be something else")
  }
}
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence