Fix bugs in range example.
Merge pull request #2 from trainman419/fix_range_example

Fix bugs in range example and issue in spacebrew.py. Thanks trainman419 for catching these errors.