open source softplc beremiz,designed by python , worth study! lastest release,2019