Add DEV-PyRT.ipynb and fixing bugs in Layout.py