Update raycast.py

PEP8
Update weights.py
Merge pull request #428 from Kosvor/master

PEP8