Fixed the id problem & implemented first checks for the python interface