n-body simulation using Barnes-Hut algorithm implemented in Python