Singleton arrays and early disk space checks implemented

Wrapping single elements in arrays done only for check_space() calls
now. Disk space check for hashtable now done early.

pylint and pep8 run