Python script to get status of modules