some tricks of python