Writing a Python program that interacts with Windows APIs