added py-files for latch and and