Sample codes for python