Update nearlyint.py

Tidied up for human consumption.