some snippets and python stuff