add new content from faif's python-patterns

add new content from faif's python-patterns