remove assert and add custom exception, add module-level exception
remove assert and add custom exception, add module-level exception

heartscrytech/PySWD,heartscrytech/PySWD,kcuzner/PySWD,pfalcon/PySWD,pfalcon/PySWD,pfalcon/PySWD,kcuzner/PySWD