Fix bug with 'parse_size' import and cleanup code style.