Create create_mem_layer.py