how to make it shorter (pythonic)?,do_something()