python code used to create result and figures