Add createFromDictAndFilter for Python. Re-styling to fit in 80 columns.