Upload files on Python

Hello:
Newbie to Python here. Trying to understand FILE UPLOAD TO A WEBSITE VIA PYTHON.
Can someone help please?