python_magic needs to handle none_on_fail