Collection of Python codes I think might worth having for future reference