reversed python complexity