Update deprecated from python import