I am trying / wanting to write a Python script (2.7) that goes to a form on a website (with the name \"form1\") and fills in the first input-field in said form
Take a look at Mechanize and Selenium. Both are excellent pieces of software that would allow you to automate filling and submitting a form, among other browser tasks.