Python - How to create a keylogger