used more pythonic entrance point
Modified the client to use argparse instead of argv and to use getpass so the password isn't in your commandline history