How to make it shorter (Pythonic)?,do_something()