Implementation of Buckingham's Pi theorem using Python