Fixed string formatting to use format()
Moved range form fields to range.py
Added tests for range selector