Made blockalgo.py more PEP8-compliant.