Fixed identities_db param in Tops and pass closed_condition as param.
Tops now working from Python.