ack_type is also an import and this variable shadows that.