Rockwell Sequential Function In Python