my trials and errors in Python