What is a file in Python and how to use it?