remove obselete arguments
fix lambda new syntax in python3 issue.