Python based logic simulator