merge brick.py