Create logicinpython