made idle node more pythonic