def _compile(statements):
  """
  Compiles the statements
  :param str statements:
  :return str/None: None if no error
  """
  error = None
  try:
    compile(statements, "string", "exec")
  except SyntaxError as err:
    error = str(err)
  return error