Python potential workaround