remove unuseful python code