A Python code for studying social networks using Turtlebots