GoF patterns (python, javascript)