added duck for python duck typing