401. Whoever shall belong to any wandering or other gang of persons associated for the purpose of habitually committing theft or robbery, and not being gang-robbers, shall be punished with imprisonment for a term which may extend to seven years, and shall also be liable to fine or to whipping.