some common use function of python