Some refactoring and using argparse

- Separate GenKey and GenPass scripts
- Call to a single library that handles both generations