a python tools to grab background automatically