python 3 supports range
change record size variable