Fixed bugs in generating weight vector and calculating the dot product of two vectors. Also added conversion of 'array-like' inputs to numpy arrays.
Removed Python byte-code files. Added standard gitignore for python.