decrease python code