Added patterns.py

Added patterns.py, a module tool capable of managing metaclass instance
patterns