Some classes have been deprecated. In order to import operator, you need to do this :
from airflow.providers.standard.operator.{your_operator} import {your_operator}
This applies to python and bash.