Added `is_valid_module_name` function with some validation effort in there. Should do it imho.