Python Check Imported Definition