password: python3 fix

- encode password in UTF-8 before hash it
- raw_input() -> input()