Update form.py

This version enables the file to be be read on a 2.7 Python version, and includes a beginning of the scalar multiplication.