Codes while experimenting with python