recently i learned python and its syntax and i started to write some little programs.Today i wanted to do something more complex and after some research i found out that i needed to download and import some libraries.I'd like to know how these libraries are written,for example i red the pyhook source but i didn't understand how it takes the input from keyboard and mouse.I need only a starting point to learn because i want to do things on my own in order to understand better how everything works.
Edit: i know the language,what i need is a starting point to learn how to more complex things like controlling hardware and stuff like that without downloading libraries made by other members of Python community